package 乒乓球框;

import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        while (in.hasNext()) {
            char[] s1 = in.next().toCharArray();
            char[] s2 = in.next().toCharArray();
            int[] st = new int[26];
            for (int i = 0; i < s1.length; i++) {
                st[s1[i] - 'A']++;
            }
            String res = "Yes";
            for (int i = 0; i < s2.length; i++) {
                if (--st[s2[i] - 'A'] < 0) {
                    res = "No";
                    break;
                }
            }
            System.out.println(res);
        }
    }
}
